import request from '@/utils/request'

// api地址
const api = {
  list: 'comment/list',
  total: 'comment/total'
}

// 商品评价列表
export const list = (goodsId, param, option) => {
  return request.get(api.list, { goodsId, ...param }, option)
}

// 商品评价总数
export const total = (goodsId, param) => {
  return request.get(api.total, { goodsId, ...param })
}
